/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;

/**
 *
 * @author Nuno
 */
public class MedalIndividual extends Medal implements Serializable{
   
   private Athlete athlete;

   public MedalIndividual(Athlete athlete,  EditionDisciplineEvent editionDisciplineEvent,  MEDALTYPE medalType) {
      super( editionDisciplineEvent,  medalType);
      this.athlete = athlete;
   }

   /**
    * @return the athlete
    */
   public Athlete getAthlete() {
      return athlete;
   }

   /**
    * @param athlete the athlete to set
    */
   public void setAthlete(Athlete athlete) {
      this.athlete = athlete;
   }

   @Override
   public String toString() {
      return super.toString() + athlete.getName() + " " + athlete.getNation().getCode();
   }

   @Override
   public int compareTo(Medal o) {
      throw new UnsupportedOperationException("Not supported yet.");
   }


   
   
   
}
